package com.zhonku.antifack.server.entity;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	private String id;
	private String name;
	private String password;
	private Timestamp createDate;
	private Integer sex;
	private Integer age;
	private Integer role;
	private Set saleRecords = new HashSet(0);
	private Set saleRecords_1 = new HashSet(0);
	private Set goodses = new HashSet(0);

	// Constructors

	/** default constructor */
	public User() {
	}

	/** full constructor */
	public User(String name, String password, Timestamp createDate,
			Integer sex, Integer age, Integer role, Set saleRecords,
			Set saleRecords_1, Set goodses) {
		this.name = name;
		this.password = password;
		this.createDate = createDate;
		this.sex = sex;
		this.age = age;
		this.role = role;
		this.saleRecords = saleRecords;
		this.saleRecords_1 = saleRecords_1;
		this.goodses = goodses;
	}

	// Property accessors

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public Integer getSex() {
		return this.sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public Integer getAge() {
		return this.age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Integer getRole() {
		return this.role;
	}

	public void setRole(Integer role) {
		this.role = role;
	}

	public Set getSaleRecords() {
		return this.saleRecords;
	}

	public void setSaleRecords(Set saleRecords) {
		this.saleRecords = saleRecords;
	}

	public Set getSaleRecords_1() {
		return this.saleRecords_1;
	}

	public void setSaleRecords_1(Set saleRecords_1) {
		this.saleRecords_1 = saleRecords_1;
	}

	public Set getGoodses() {
		return this.goodses;
	}

	public void setGoodses(Set goodses) {
		this.goodses = goodses;
	}

}